﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LightWeb.BlogCore.Provider
{
    public class BlogService
    {
        /// <summary>
        ///     Gets the current provider.
        /// </summary>
        public static BlogProvider Provider
        {
            get
            {
                return new NHBlogProvider();
            }
        }
        internal static void InsertPost(Post post)
        {
            Provider.InsertPost(post);
        }

        internal static List<Category> FillCategories()
        {
            return Provider.FillCategories();
        }

        internal static List<BlogCore.Post> FillPosts()
        {
            return Provider.FillPosts();
        }
    }
}
